
package net.atremmedia.gwt.actionjava.examples.bounds;

import java.util.ArrayList;
import java.util.List;
import net.atremmedia.gwt.actionjava.examples.AJExample;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawArc;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawArcBounds;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawArcBounds2;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawArcTo;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawArcToBounds;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawArcToBounds2;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawCubicCurve;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawCubicCurveBounds;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawCubicCurveBounds2;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawGraphicsBounds;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawGraphicsBounds2;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawGraphicsBounds3;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawGraphicsBounds4;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawQuadCurve;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawQuadCurveBounds;
import net.atremmedia.gwt.actionjava.examples.bounds.samples.DrawQuadCurveBounds2;
import net.atremmedia.gwt.actionjava.examples.frame.AJExampleOverview;
import actionjava.session.view.CanvasInUseException;
import actionjava.session.view.CanvasNotFoundException;

public class BoundsExamples extends AJExampleOverview
{
	public BoundsExamples() throws CanvasNotFoundException, CanvasInUseException
	{
		super("ajTest", 800, 600);
	}

	private AJExample[] createExamples()
	{
		List<AJExample> examples = new ArrayList<AJExample>();
		examples.add(new DrawArc(this));
		examples.add(new DrawArcBounds(this));
		examples.add(new DrawArcBounds2(this));

		examples.add(new DrawArcTo(this));
		examples.add(new DrawArcToBounds(this));
		examples.add(new DrawArcToBounds2(this));

		examples.add(new DrawQuadCurve(this));
		examples.add(new DrawQuadCurveBounds(this));
		examples.add(new DrawQuadCurveBounds2(this));

		examples.add(new DrawCubicCurve(this));
		examples.add(new DrawCubicCurveBounds(this));
		examples.add(new DrawCubicCurveBounds2(this));

		examples.add(new DrawGraphicsBounds(this));
		examples.add(new DrawGraphicsBounds2(this));
		examples.add(new DrawGraphicsBounds3(this));
		examples.add(new DrawGraphicsBounds4(this));

		return examples.toArray(new AJExample[examples.size()]);
	}

	@Override
	public void run()
	{
		setExamples(createExamples());
		super.run();
	}
}
